package com.jeethink.erp.transfer.domain;

import com.jeethink.common.core.domain.entity.TbShop;
import com.jeethink.erp.commodity.domain.TbCommodity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jeethink.common.annotation.Excel;
import com.jeethink.common.core.domain.BaseEntity;

/**
 * 库存调拨申请对象 tb_stock_transfer
 * 
 * @author ypr
 * @date 2021-06-03
 */
public class TbStockTransfer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存调拨申请id */
    private Long transferId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long commodityId;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 申请数量 */
    @Excel(name = "申请数量")
    private Long applyNum;

    /** 是否同意 0 不同意 1同意 */
    @Excel(name = "是否同意 0 不同意 1同意")
    private String isAgree;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private TbShop tbShop;

    private TbCommodity tbCommodity;

    public TbShop getTbShop() {
        return tbShop;
    }

    public void setTbShop(TbShop tbShop) {
        this.tbShop = tbShop;
    }

    public TbCommodity getTbCommodity() {
        return tbCommodity;
    }

    public void setTbCommodity(TbCommodity tbCommodity) {
        this.tbCommodity = tbCommodity;
    }

    public void setTransferId(Long transferId)
    {
        this.transferId = transferId;
    }

    public Long getTransferId() 
    {
        return transferId;
    }
    public void setCommodityId(Long commodityId) 
    {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() 
    {
        return commodityId;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setApplyNum(Long applyNum) 
    {
        this.applyNum = applyNum;
    }

    public Long getApplyNum() 
    {
        return applyNum;
    }
    public void setIsAgree(String isAgree) 
    {
        this.isAgree = isAgree;
    }

    public String getIsAgree() 
    {
        return isAgree;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("transferId", getTransferId())
            .append("commodityId", getCommodityId())
            .append("shopId", getShopId())
            .append("applyNum", getApplyNum())
            .append("isAgree", getIsAgree())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
